package com.zp.drug.entity.bo;

import com.zp.common.core.entity.TreeEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;


/**
 * 药品功效类别字典业务对象
 *
 * @author zhang peng
 * @ date 2023-05-31
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DrugClassDictBo extends TreeEntity<DrugClassDictBo> {

    /**
     * 主键
     */
//    @NotBlank(message = "主键不能为空", groups = {EditGroup.class})
    private String id;

    /**
     * 类别代码
     */
    @NotBlank(message = "类别代码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String classCode;

    /**
     * 类别名称
     */
    @NotBlank(message = "类别名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String className;

    /**
     * 所有父级编号
     */
    private String parentIds;

    /**
     * 备注信息
     */
    private String remarks;

    /**
     * 排序
     */
    private int sort;


}
